package com.youlai.boot.gym.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 课程安排表单对象
 *
 * @author hxc
 * @since 2025-06-01 15:47
 */
@Getter
@Setter
@Schema(description = "课程安排表单对象")
public class ClassSchedulesForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "课程类型ID")
    @NotNull(message = "课程类型ID不能为空")
    private Integer classTypeId;

    @Schema(description = "教练ID")
    @NotNull(message = "教练ID不能为空")
    private Integer trainerId;

    @Schema(description = "开始时间")
    @NotNull(message = "开始时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @NotNull(message = "结束时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Schema(description = "最大容量")
    @NotNull(message = "最大容量不能为空")
    private Integer maxCapacity;

    @Schema(description = "上课地点")
    @NotBlank(message = "上课地点不能为空")
    @Size(max=100, message="上课地点长度不能超过100个字符")
    private String location;


}
